FROM xa.repo.ndp.com:5000/paas/u14-ssh-jdk1.8:1.0

MAINTAINER PaaS/allen

ENV TAR_FILE fbagent-services.tar
ENV MY_DIR /dianyi/app/walle/fbagent-services
ENV RocketMQ_SSL_DIR /dianyi/conf/RocketMQ/SSL

ADD /$TAR_FILE $MY_DIR/
ADD client.ks $RocketMQ_SSL_DIR/

WORKDIR $MY_DIR/bin
RUN chmod +x *.sh
RUN sed -i 's/-Xms2g/-Xms512m/g' start.sh

ADD /paas-bootstrap.sh /
CMD bash /paas-bootstrap.sh
